package com.example.demo.service;

import com.example.demo.mapper.UserMapper;
import com.example.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date:2022-11-05
 * Time:9:13
 *
 * @Author: 东莞呵呵
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public int addUser(UserInfo userInfo) throws InterruptedException {
        Thread.sleep(5*1000);
        return userMapper.addUser(userInfo);
    }
}
